package session.stateless.CRM;

import entity.CRM.Representative;
import entity.CRM.SaleLead;
import entity.CRM.SaleLead.CustomerType;
import java.util.List;
import javax.ejb.Local;

@Local
public interface SaleLeadBeanLocal {
    
    public Representative createRepresentative(String name, String email, String contactNumber);
    public void updateRepresentative(String email, String contactNumber);
    public void deleteRepresentative(String reg_num, String email);
    
    public void createSaleLead(String name, String reg_num, String address, CustomerType customerType, List<Representative> representatives, Long executiveId) ;
    public void updateSaleLead(String reg_num, String saleLeadName, String saleLeadAddress, CustomerType customerType);
    public void deleteSaleLead(String reg_num);
    
    public List<SaleLead> getSalesLead(Long id);
    public List<SaleLead> getAllSalesLead();
    public void remove();
    public SaleLead find(String registrationNumber);
    public SaleLead findByName(String saleLeadName);
    
    public boolean checkNRIC(String NRIC) ;
    public boolean checkEmail(String email);
    public boolean checkContactNumber (String contactNumber);

}
